<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<script type="text/javascript"></script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<style type="text/css">
	p.err span{
		font-weight:bold;
		color: red;
		font-size: 15px;
		font-family: 幼圆;
	
	}
</style>
</head>
<body>

<form action="LoginServlet">
<p>用户名</p>
<input type="text" name="name">
<br>
<p>密码</p>
<input type="password" name="password">
<br>
<input type="submit" value="登陆">
</form>

<% 
String msg = request.getParameter("msg");
if (msg != null && !"".equals(msg)) {%>
        		<p class="err"><span><%=msg %></span></p>
        	<% } %>

</body>
</html>